<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      width: 400px;
      height: 100px;
      border: 2px solid red;
      /*文本修饰*/
      text-decoration: none;
      /*文本对齐方式*/
      text-align: center;
    /*  行高*/
      line-height:100px;
      /*设置阴影*/
      text-shadow: red 20px 6px  10px;
      /*设置字体大小*/
      font-size:50px;
      /*设置字体加粗*/
      font-width: bold;
    /*  设置字体斜体*/
      font-style: italic;

    }
  </style>
</head>
<body>
  <div>文本和字体相关</div>
</body>
</html>